package com.tasly.score.remote;

import com.tasly.user.dto.UserDTO;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description: api级别熔断器
 * @Author: sunpengpeng
 * @Date: Create in 2017/5/15 16:33
 * @Modified By:
 */
@Component
public class UserServerRemoteHystrix implements UserServerRemote{

    @Override
    public UserDTO get(Long uid) {
        UserDTO user = new UserDTO();
        user.setId(uid);
        user.setAge(24);
        user.setName("张三");
        user.setPassword("admin");
        user.setUsername("admin");
        return user;
    }
}
